﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DLM.Web.MVC.Extensions;
using DLM.Services.Interfaces;

namespace DLM.Web.MVC.Areas.Management.Controllers
{
    [AdminAuthorize]
    public class LogController : Controller
    {
        //
        // GET: /Management/Log/

        private IAdminService adminService;

        public LogController(IAdminService adminService)
        {
            this.adminService = adminService;
        }

        [HttpGet]
        public ActionResult List(int ? page)
        {
            var list = this.adminService.GetLog(page ?? 0, 20);
            return View(list);
        }

    }
}
